﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using prjKQXS_DLL.LoTo;

namespace prjKQXS_UI.Lo_to
{
    public partial class frmXoaLoto : DevExpress.XtraEditors.XtraForm
    {
        public DateTime NgayMoThuong;
        public string MaDaiLy;
        public int KetQua;
        public frmXoaLoto()
        {
            InitializeComponent();
        }

        private void DeleteByLoaiVe(object sender, EventArgs e)
        {

            RadioButton radioButton = (RadioButton) sender;
            if (
                MessageBox.Show("Bạn có chắc muốn xóa " + radioButton.Name + " ?", "Thông báo", MessageBoxButtons.YesNo,
                                MessageBoxIcon.Warning) == DialogResult.Yes)
            {
                KetQua = prjKQXS_DLL.LoTo.clsLoTo.deleteBangkelotoByLoaive(MaDaiLy, radioButton.Name, NgayMoThuong);

                this.Close();
            }
      }     
    }
}